﻿// version: 1.9
// created: 2012-03-26
// updated: 2012-03-26
// pigeoncms.com

function checkMobile()
{
    var mobile = false;
    if (navigator.userAgent.match(/Android/i) ||
            navigator.userAgent.match(/webOS/i) ||
            navigator.userAgent.match(/iPhone/i) ||
            navigator.userAgent.match(/iPod/i) ||
            navigator.userAgent.match(/BlackBerry/))
        mobile = true;
    return mobile;
}